Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@pacote/is-plain-object
Advanced tools
Checks whether the provided value is a plain JavaScript object.
yarn add @pacote/is-plain-object
import { isPlainObject } from '@pacote/is-plain-object'
// These return true:
isPlainObject({})
isPlainObject({ an: 'object' })
// All of these return false:
isPlainObject(undefined)
isPlainObject(null)
isPlainObject(false)
isPlainObject(true)
isPlainObject(NaN)
isPlainObject(Infinity)
isPlainObject(0)
isPlainObject('string')
isPlainObject([])
isPlainObject(new ArrayBuffer(0))
isPlainObject(new Date())
isPlainObject(new Map())
isPlainObject(new Promise())
isPlainObject(new Set())
isPlainObject(new WeakMap())
isPlainObject(new WeakSet())
isPlainObject(o: any): boolean
isPlainObject()
takes a single value and checks whether it is a plain object. May be used as a type guard.
MIT © Luís Rodrigues.
FAQs
Checks whether the provided object is a plain JavaScript object.
The npm package @pacote/is-plain-object receives a total of 39 weekly downloads. As such, @pacote/is-plain-object popularity was classified as not popular.
We found that @pacote/is-plain-object demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.